Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add erlang 27 to ci #174

Merged
merged 1 commit into from
May 26, 2024
Merged

add erlang 27 to ci #174

merged 1 commit into from
May 26, 2024

Conversation

ruslandoga
Copy link
Contributor

No description provided.

@ruslandoga ruslandoga force-pushed the add-erlang-27-to-ci branch from b70f6af to 20e5021 Compare May 26, 2024 10:15
@@ -113,7 +113,7 @@ defmodule Ch.QueryTest do
test "decoded binaries copy behaviour", %{conn: conn} do
text = "hello world"
assert [[bin]] = Ch.query!(conn, "SELECT {$0:String}", [text]).rows
assert :binary.referenced_byte_size(bin) == byte_size(text)
assert :binary.referenced_byte_size(bin) == :binary.referenced_byte_size("hello world")
Copy link
Contributor Author

@ruslandoga ruslandoga May 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like OTP-27 over-allocates memory for small binaries, so this test had to be updated since referenced byte size for "hello world" is now 88 bytes instead of 11.

@ruslandoga ruslandoga merged commit 0b182c5 into master May 26, 2024
10 checks passed
@ruslandoga ruslandoga deleted the add-erlang-27-to-ci branch May 26, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant